<?php
	session_unset();
	session_destroy();
	setcookie ("user", "", time() - 3600);
	setcookie ("PHPSESSID", "", time() - 3600);

 	header("HTTP/1.0 401 Unauthorized");
	header("Location: ".$_SERVER['HTTP_REFERER']);
?>